package com.syg.boot.core.web.data;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author qg
 * @version 1.0
 */
@Data
public class DataRequest<T> implements Serializable {

    private static final long serialVersionUID = 7948957101311379316L;

    @ApiModelProperty("业务参数对象")
    private T data;
    @ApiModelProperty("页码")
    private Integer currentPage;
    @ApiModelProperty("每页条数")
    private Integer pageSize;
    @ApiModelProperty("请求唯一流水号")
    private String flowId;
    @ApiModelProperty("版本号")
    private String version;
    @ApiModelProperty("交易码")
    private String apiCd;
    @NotBlank(message = "系统标识sysFlag")
    @ApiModelProperty("系统标识")
    private String sysFlag;
    @ApiModelProperty("时间戳,yyyy-MM-dd HH:mm:ss")
    private String timestamp;
    @ApiModelProperty("渠道编号")
    private String channelNo;
    @ApiModelProperty("appKey")
    private String appKey;
}
